const Mock=require("mockjs");
const data=Mock.mock({
    "list|10":[{
        name:"@cname",
        img:"@image(100X100,@color)",
        "num|0-10":0,
        id:"@id"
    }]
})
module.exports = {
    devServer:{
        before(app)
        {
            app.get("/list",(req,res)=>{
                res.send( data.list)
            })
        }
    }
}